<template>
	<view v-if="show">
		<u-modal :show="show" :title="title" :content="content" confirmColor="#000000"
			@cancel="$emit('close')" @close="$emit('close')" @confirm="$emit('confirm')"
			:confirmText="confirmText" :showCancelButton="showCancelButton"></u-modal>
	</view>
</template>
<script>
	export default {
		name: "modal",
		data() {
			return {};
		},
		// 此处定义传入的参数
		props: {
			// 显示/隐藏
			show: {
				type: Boolean,
				default: true,
			},
			// 标题
			title: {
				type: String,
				default: '提示',
			},
			// 提示内容
			content: {
				type: String,
				default: '',
			},
			// 确认按钮文字
			confirmText: {
				type: String,
				default: '确认'
			},
			// 是否显示取消按钮
			showCancelButton: {
				type: Boolean,
				default: true,
			}
		},
		watch: {},
		mounted() {},
		methods: {},
	}
</script>
<style lang="scss">
</style>